package com.khshop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.khshop.pojo.Type;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品分类 服务类
 * </p>
 *
 * @author zhaoyang
 * @since 2020-10-13
 */
public interface TypeService extends IService<Type> {

    public IPage<Type> search(Map<String,Object> map,Integer page, Integer limit);

    public boolean add(Type type);

    public boolean update(Type type);

    public List<Type> findTypes(int parentid);

    public boolean shiftMove(Long []oldTypeId, Long parentId);

    public boolean delTypes(Long []typeId);


}
